package com.usian.api.article;

import com.usian.model.article.dto.ArticleHomeDto;
import com.usian.model.article.dto.ArticleInfoDto;
import com.usian.model.article.pojos.ApArticle;
import com.usian.model.common.dtos.ResponseResult;

import java.util.List;

/**
 * @Description:
 * @Auther:ASS
 * @Date:2023/2/22 11:17
 */
public interface ApArticleControllerApi {

    public ApArticle saveApArticle(ApArticle apArticle);



    /**
     * 加载首页文章
     * @return
     */
    public ResponseResult load(ArticleHomeDto dto);

    /**
     * 加载更多 上拉
     * @return
     */
    public ResponseResult loadMore(ArticleHomeDto dto);

    /**
     * 加载最新 下拉
     * @return
     */
    public ResponseResult loadNew(ArticleHomeDto dto);

    /**
     * 加载文章详情
     * @param dto
     * @return
     */
    public ResponseResult loadArticleInfo(ArticleInfoDto dto);


    public ResponseResult loadArticleBehavior(ArticleInfoDto dto);

    public List<ApArticle> findArticle();
}
